package baoxin.com.robotcoach;

import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.view.View;

/**
 *
 */
public  class BottomActivity extends BaseActivity implements View.OnClickListener{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initBottom();
    }
    private void initBottom() {
        findViewById(R.id.baoxin).setOnClickListener(this);
        findViewById(R.id.robot).setOnClickListener(this);
        findViewById(R.id.student_info).setOnClickListener(this);
        findViewById(R.id.speak).setOnClickListener(this);
        findViewById(R.id.bluetooth_devices).setOnClickListener(this);
        findViewById(R.id.setting).setOnClickListener(this);
        findViewById(R.id.login_out).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.baoxin:
                break;
            case R.id.robot:
                break;
            case R.id.student_info:
                break;
            case R.id.speak:
                onSpeak();
                break;
            case R.id.bluetooth_devices:
                Intent intent = new Intent(this,ScanActivity.class);
                startActivity(intent);
                break;
            case R.id.setting:
                break;
            case R.id.login_out:
                break;
        }
    }

    protected  void onSpeak(){

    }

}
